(function() {
    var getScriptArgs = function() {
        var scripts = document.getElementsByTagName("script");
        var script = scripts[scripts.length - 1],
            src = script.src,
            reg = /(?:\?|&)(.*?)=(.*?)(?=&|$)/g,
            temp, res = {};
        while ((temp = reg.exec(src)) != null) res[temp[1]] = decodeURIComponent(temp[2]);
        return res;
    };
    var args = getScriptArgs();
    var linkLiArr = [],
        num = args.num;
    if (!num || num <= 0) { num = "1"; }
    var linkLi = '<li class="num1"><a title="微信"  href="javascript:void(0)" style="cursor: default;"  tabindex="-1"> <img src="/mongo/5b0d1986b760f34c5e685dfb.jpg"  width="100"   height="100"  border="0" alt="微信">    <span class="img_title img-title">微信</span> </a> </li>';
    linkLiArr.push(linkLi);
    var printContent = function() { var length = linkLiArr.length; if (num > length) { num = length; } if (linkLiArr.length > 0) { for (var i = 0; i < num; i++) { document.write(linkLiArr[i]); } } }();
})()